Here are a few XCMDs to implement simple MIDI communication via a standard MIDI interface on the modem port. Please let me hear your thoughts. If there is interest in a full featured HyperMIDI interface with MIDI event filtering, time stamping, sequence record and playback and save to file, etc., let me know.
Nigel J. Redmon CIS: 72736,753 PAN: NIGELR
InitMIDI [rate] - installs the MIDI serial interrupt handler and allocates input and output queues (8K each). Rate is 1[MHz], 2[MHz], or 5[00KHz], the clock rate of your MIDI interface (usually 1MHz). Default is 1MHz. Call this before using other commands (i.e., on openStack).
ResetMIDI - deallocates queues and removes interrupt handlers. Call this when you are done with HyperMIDI (i.e., on closeStack).